package com.yumingjiang.weichatgtp.common.exception;

/**
 * [一句话描述该类的功能]
 *
 * @author : [Administrator]
 * @version : [v1.0]
 * @createTime : [2023/3/11 0:04]
 */
public class BizException extends RuntimeException {
    private String message;

    private Object o;

    public BizException() {
        super();
    }

    public BizException(String message,Throwable throwable) {
        super(message,throwable);
    }

    public BizException(String message, Object o) {
        super(message);
        this.o = o;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public StackTraceElement[] getStackTrace(Object o) {
        println(o);
        return super.getStackTrace();
    }

    private void println(Object o) {
        System.out.println(o.toString());
    }
}
